package com.nec.recommend.module.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.nec.recommend.module.system.entity.SysUser;
import com.nec.recommend.module.system.dto.UserInfoDTO;

/**
 * 系统用户表查询
 *
 * @author limingzhen
 * @date 2024/4/7
 */
public interface UserService extends IService<SysUser> {
    SysUser queryById(Long id);

    UserInfoDTO queryByAccount(String account);

    SysUser insert(SysUser sysUser);

    Boolean update(SysUser sysUser);

    boolean deleteById(Long id);

    boolean updatePwd(String account, String oldPwd, String newPwd);
}